import 'package:json_annotation/json_annotation.dart';

part 'messages.g.dart';

@JsonSerializable()
class messages{
  messages({this.messageid,this.conversationid,this.fromusername,this.tousername,this.message,this.updatetime});
  int messageid;
  int conversationid;
  String fromusername;
  String tousername;
  String message;
  String updatetime;
  factory messages.fromJson(Map<String, dynamic> json) => _$messagesFromJson(json);
  Map<String,dynamic> toJson() => _$messagesToJson(this);
}